<template>
	<view>
		<view v-for="(item,index) in value">
			<game-item v-model="value[index]" @onDown="bindDown" @onStart="bindStart"></game-item>
		</view>
	</view>
</template>

<script>
	import gameItem from './game-item.vue';
	export default {
		props: {
			value: {
				type: Array,
				default: []
			},
		},
		components:{
			gameItem
		},
		methods: {
			bindStart(item) {
				this.$emit('onStart',item)
			},
			bindDown(item){
				this.$emit('onDown',item)
			}
		},
	}
</script>

<style>
</style>
